package com.ngkj.zmfptback.business.service.read.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ngkj.zmfptback.business.bean.BusinessEntity;
import com.ngkj.zmfptback.business.mapper.read.BusinessReadMapper;
import com.ngkj.zmfptback.business.service.read.BusinessReadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author ChenHN
 * @since 2021/12/27 creation
 **/
@Service
public class BusinessReadServiceImpl extends ServiceImpl<BusinessReadMapper, BusinessEntity> implements BusinessReadService {

    @Resource
    private BusinessReadMapper businessReadMapper;

    @Override
    public IPage<Map<String, Object>> getBusinessPage(BusinessEntity business, Page<BusinessEntity> page) {
        return businessReadMapper.getBusinessPage(business,page);
    }

    @Override
    public List<BusinessEntity> getSqByQywzid(String qywzid) {
       return businessReadMapper.getSqByQywzid(qywzid);
    }
}
